<div class="row" id="header" >
	<div class="col-md-3">
		<a href="__APP__"><img id="logo" src="__PUBLIC__/img/logo.png" /></a>
	</div>
	<div class="col-md-6">
		<p id="contact"><i class="glyphicon glyphicon-phone-alt"></i>400-12345678910<i class="glyphicon glyphicon-envelope"></i>onlyallure@163.com</p>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="请输入商品名称或店铺...">
			<span class="input-group-btn">
				<button class="btn btn-danger" type="button">搜索</button>
			</span>
		</div>
	</div>
	<div class="col-md-3">
		<div class="login_info">
			<?php if($_SESSION['user_is_login']){?>
				<span>欢迎回来,<?=$_SESSION['username']?></span><a href="<?=U('user/logout')?>">退出</a>
				<?php }else{?>
					<a href="<?=U("user/login")?>">立即登录</a>
					<a href="<?=U('user/regedit')?>">立即注册</a>
				<?php }?>
		</div>
		<a href="<?=U('shopping/cartlist')?>" id="shopcart" class="pull-right">
		
			<i class="glyphicon glyphicon-shopping-cart"></i>我的购物车
			
			<?php if($_SESSION['user_is_login']){?>
			<span><?=M('user_cart')->where('user_id ='.$_SESSION['user_id'])->count()?></span>
			<?php }?>
		</a> 
	</div>
</div>